package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class ReadrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ReadrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andRdnoIsNull() {
            addCriterion("rdno is null");
            return (Criteria) this;
        }

        public Criteria andRdnoIsNotNull() {
            addCriterion("rdno is not null");
            return (Criteria) this;
        }

        public Criteria andRdnoEqualTo(String value) {
            addCriterion("rdno =", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoNotEqualTo(String value) {
            addCriterion("rdno <>", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoGreaterThan(String value) {
            addCriterion("rdno >", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoGreaterThanOrEqualTo(String value) {
            addCriterion("rdno >=", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoLessThan(String value) {
            addCriterion("rdno <", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoLessThanOrEqualTo(String value) {
            addCriterion("rdno <=", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoLike(String value) {
            addCriterion("rdno like", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoNotLike(String value) {
            addCriterion("rdno not like", value, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoIn(List<String> values) {
            addCriterion("rdno in", values, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoNotIn(List<String> values) {
            addCriterion("rdno not in", values, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoBetween(String value1, String value2) {
            addCriterion("rdno between", value1, value2, "rdno");
            return (Criteria) this;
        }

        public Criteria andRdnoNotBetween(String value1, String value2) {
            addCriterion("rdno not between", value1, value2, "rdno");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andOrrnoIsNull() {
            addCriterion("orrno is null");
            return (Criteria) this;
        }

        public Criteria andOrrnoIsNotNull() {
            addCriterion("orrno is not null");
            return (Criteria) this;
        }

        public Criteria andOrrnoEqualTo(String value) {
            addCriterion("orrno =", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotEqualTo(String value) {
            addCriterion("orrno <>", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoGreaterThan(String value) {
            addCriterion("orrno >", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoGreaterThanOrEqualTo(String value) {
            addCriterion("orrno >=", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLessThan(String value) {
            addCriterion("orrno <", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLessThanOrEqualTo(String value) {
            addCriterion("orrno <=", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoLike(String value) {
            addCriterion("orrno like", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotLike(String value) {
            addCriterion("orrno not like", value, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoIn(List<String> values) {
            addCriterion("orrno in", values, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotIn(List<String> values) {
            addCriterion("orrno not in", values, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoBetween(String value1, String value2) {
            addCriterion("orrno between", value1, value2, "orrno");
            return (Criteria) this;
        }

        public Criteria andOrrnoNotBetween(String value1, String value2) {
            addCriterion("orrno not between", value1, value2, "orrno");
            return (Criteria) this;
        }

        public Criteria andRddateIsNull() {
            addCriterion("rdDate is null");
            return (Criteria) this;
        }

        public Criteria andRddateIsNotNull() {
            addCriterion("rdDate is not null");
            return (Criteria) this;
        }

        public Criteria andRddateEqualTo(String value) {
            addCriterion("rdDate =", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateNotEqualTo(String value) {
            addCriterion("rdDate <>", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateGreaterThan(String value) {
            addCriterion("rdDate >", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateGreaterThanOrEqualTo(String value) {
            addCriterion("rdDate >=", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateLessThan(String value) {
            addCriterion("rdDate <", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateLessThanOrEqualTo(String value) {
            addCriterion("rdDate <=", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateLike(String value) {
            addCriterion("rdDate like", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateNotLike(String value) {
            addCriterion("rdDate not like", value, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateIn(List<String> values) {
            addCriterion("rdDate in", values, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateNotIn(List<String> values) {
            addCriterion("rdDate not in", values, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateBetween(String value1, String value2) {
            addCriterion("rdDate between", value1, value2, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddateNotBetween(String value1, String value2) {
            addCriterion("rdDate not between", value1, value2, "rddate");
            return (Criteria) this;
        }

        public Criteria andRddescribeIsNull() {
            addCriterion("rdDescribe is null");
            return (Criteria) this;
        }

        public Criteria andRddescribeIsNotNull() {
            addCriterion("rdDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andRddescribeEqualTo(String value) {
            addCriterion("rdDescribe =", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeNotEqualTo(String value) {
            addCriterion("rdDescribe <>", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeGreaterThan(String value) {
            addCriterion("rdDescribe >", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeGreaterThanOrEqualTo(String value) {
            addCriterion("rdDescribe >=", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeLessThan(String value) {
            addCriterion("rdDescribe <", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeLessThanOrEqualTo(String value) {
            addCriterion("rdDescribe <=", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeLike(String value) {
            addCriterion("rdDescribe like", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeNotLike(String value) {
            addCriterion("rdDescribe not like", value, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeIn(List<String> values) {
            addCriterion("rdDescribe in", values, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeNotIn(List<String> values) {
            addCriterion("rdDescribe not in", values, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeBetween(String value1, String value2) {
            addCriterion("rdDescribe between", value1, value2, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRddescribeNotBetween(String value1, String value2) {
            addCriterion("rdDescribe not between", value1, value2, "rddescribe");
            return (Criteria) this;
        }

        public Criteria andRdstateIsNull() {
            addCriterion("rdState is null");
            return (Criteria) this;
        }

        public Criteria andRdstateIsNotNull() {
            addCriterion("rdState is not null");
            return (Criteria) this;
        }

        public Criteria andRdstateEqualTo(Integer value) {
            addCriterion("rdState =", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateNotEqualTo(Integer value) {
            addCriterion("rdState <>", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateGreaterThan(Integer value) {
            addCriterion("rdState >", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("rdState >=", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateLessThan(Integer value) {
            addCriterion("rdState <", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateLessThanOrEqualTo(Integer value) {
            addCriterion("rdState <=", value, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateIn(List<Integer> values) {
            addCriterion("rdState in", values, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateNotIn(List<Integer> values) {
            addCriterion("rdState not in", values, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateBetween(Integer value1, Integer value2) {
            addCriterion("rdState between", value1, value2, "rdstate");
            return (Criteria) this;
        }

        public Criteria andRdstateNotBetween(Integer value1, Integer value2) {
            addCriterion("rdState not between", value1, value2, "rdstate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}